import {
	http
} from '../httpIndex.js'


export default {
	// 创建违纪
	createApply(data) {
		return http.post(
			`app/violation/createApply`, data
		)
	},
	// 待审批列表
	getPageList(data) {
		return http.post(
			`app/violation/pageList`, data
		)
	},

	// 获取已完成审批列表
	findHistoryApproval(data) {
		return http.post(
			`app/violation/findHistoryApproval`, data
		)
	},
	// 获取学生详细信息
	getStudentById(id) {
		return http.get(
			`app/Student/getStudentById/${id}`
		)
	},

	// 查询pid
	workFlowInfo(data) {
		return http.post(
			`app/violation/workFlowInfo`, data
		)
	},

	// 审批
	processWorkFlow(data) {
		return http.post(
			`app/violation/processWorkFlow`, data
		)
	},
	// 撤销申请
	cancelApply(data) {
		return http.post(
			`app/violation/cancelApply`, data
		)
	},
	// 我提交的申请单列表
	getPagelist(data) {
		return http.post(
			`app/violation/pageList`, data
		)
	},

	// 获取记录
	historyWorkFlowList(data) {
		return http.post(
			`app/workflow/historyWorkFlowList`, data
		)
	},
	
	// 获取违纪统计
	getPartrolStatistics(data) {
		return http.post(
			`app/violation/getStuViolationStatistics`, data
		)
	},
	
	getPartrolStatisticsDetail(data) {
		return http.post(
			`app/violation/getStuViolationStatisticsDetail`, data
		)
	},
	
	getProcessedPageList(data) {
		return http.post(
			`app/violation/getProcessedPageList`, data
		)
	},
}